﻿var bg_time = 0;

function bg_draw() {
    context.drawImage(bg_img, 0, bg_time % 700 - 700);
    context.drawImage(bg_img, 0, bg_time % 700);
    bg_time++;
    // draw graze
    context.fillStyle = 'white';
    context.fillText ('graze: ' + graze, 320, 40);
    context.fillText ('bullet: ' + enemy_bullet.length, 320, 60);
    context.fillText ('power: ' + player.power, 320, 80);
}
